home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / extra_2 / drm301.zip / MATH.DOC < prev    next >
Text File  |  1992-05-13  |  4KB  |  101 lines

  1. This is mathematical expressions calculator. You can use it at DOS
  2. prompt just like this:
  3.         math 4*sin(30)/(5-1)
  4.         math /h                will display a short help message.
  5. or
  6.         math /r 2^3/cos(pi) 
  7.  
  8. /r tells the program to use radians.  Above means "2 raised to power 3
  9. divided by cos(3.1415926536), the result is -8.
  10.  
  11. You can use it also interactively by entering only:
  12.  
  13.     math
  14.  
  15. You will then see the welcome screen. Next you can continue entering
  16. expressions and watching results, possibly using 26 memory registers
  17. (named with single letter a..z) available to store intermediate
  18. results. 
  19.  
  20. Version 2.0 adds possibility to define 20 user functions. To use this
  21. feature start interactive math and type:
  22.  
  23.         def:name(p0,p1,...,p9)=expression
  24.  
  25. The name of a function may be a combination of 2 to 6 letters and
  26. digits, starting with a letter. p0 to p9 are formal parameters, you
  27. can have from 0 to 10 of this parameters. Examples of function
  28. definitions:
  29.  
  30.    def:cot(p0) = 1/tan(p0)    defines function cotangent
  31.    def:const=-15.67           defines some constant
  32.    def:doubx=2*x              returns double contents of register x 
  33.    def:dst(p0,p1) = sqrt(p0*p0 + p1*p1)
  34.  
  35. You can use these functions in your calculations like this:
  36.  
  37.    5 + dst(3*5.7, cos(25)*x)
  38.  
  39. You can also separate several expressions with commas. They will be
  40. executed in sequence and the last result will be printed. Example:
  41.  
  42.    x = 2, y = x+3, y + y
  43.  
  44. will print 10.
  45.  
  46. Standard functions:     
  47. acos(x)     arccosine of x
  48. asin(x)     arcsine of x
  49. atan(x)     arctangent of x
  50. cos(x)      cosine of x
  51. sin(x)      sine of x
  52. tan(x)      tangent of x
  53. deg(x)      change radians into degrees
  54. rad(x)      change degrees into radians
  55. exp(x)      exponential value of x (base is math e=2.71828183 constant)
  56. ln(x)       natural logarithm of x (base e)
  57. log(x)      base 10 logarithm of x
  58. round(x)    round the value x to the nearest integer
  59. sqrt(x)     square root of x (x must be positive or 0)
  60. abs(x)      absolute (non-negative) value of x
  61. cosh(x)     hyperbolic cosine of x
  62. sinh(x)     hyperbolic sine of x
  63. tanh(x)     hyperbolic tangent of x
  64. pi          PI constant (3.1415926536...)
  65. last        previously calculated value
  66.  
  67. Operators:
  68. +(add)  -(subtract, minus)  *(multiply)  /(divide)  %(modulo)  ^(exponent)
  69. '=' assigns a value to one letter memory register (for later use), e.g.
  70.                  x = sin(30)/(5*log(2) - 2^3)
  71.  
  72.  
  73. One letter commands:
  74. /d  set angle unit to Degrees            /q  Quit (or press Ctrl-C)
  75.     (default at start)                   /r  set angle unit to Radians
  76. /h  to see Help                          /s  Show a...z memory registers
  77. /f  display User Defined Functions       /c  clear all functions & regs.
  78. /v  saVe                                 /l  load
  79.  
  80.  
  81. The a registered version of this software, allows saving and
  82. reloading of MEC sessions (with user defined functions, register
  83. values and LAST value). Registered version also saves everything in a
  84. default file on each exit and restores it on each enter, even if used
  85. from DOS prompt.
  86.  
  87. I was asked once or twice by the users of previous versions of this
  88. program about RAM resident version. I belive that RAM resident is
  89. no longer a necessity for PC users. There are so many possibilities
  90. to have multi-tasking on PC, that RAM resident software, which was
  91. a substitute for it, will be no longer necessary. Just load math into
  92. an other DOS session of Windows 3.0 or DesqVIEW or (soon) OS/2 ver. 
  93. 2.0, and you can not only switch to it at any moment, but can also
  94. see it simultaneously with other applications, cut and paste between
  95. them etc.
  96.  
  97. All comments are welcome, please contact:
  98.     Greg Kochaniak, 3793-B Logans Ferry Road, Pittsburgh, PA 15239
  99.     Internet: gregko@yantar.pgh.pa.us
  100.  
  101.